diff --git a/django/db/models/query.py b/django/db/models/query.py
index de49e1c58c..4c557ac8e6 100644
--- a/django/db/models/query.py
+++ b/django/db/models/query.py
@@ -734,14 +734,12 @@ class QuerySet(AltersData):
             if unique_fields:
                 # Primary key is allowed in unique_fields.
                 unique_fields = [
-                    self.model._meta.get_field(name)
+                    self.model._meta.get_field(name) if name != "pk" else self.model._meta.pk
                     for name in unique_fields
-                    if name != "pk"
                 ]
                 if any(not f.concrete or f.many_to_many for f in unique_fields):
                     raise ValueError(
-                        "bulk_create() can only be used with concrete fields "
-                        "in unique_fields."
+                        "bulk_create() can only be used with concrete fields in unique_fields."
                     )
             return OnConflict.UPDATE
         return None
